package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(value = "tb_analysis_by_day")
public class Analysis{

    private Long id;
    /**
     * 日期
     */
    @TableField(value = "record_date")
    private Date recordDate;
    /**
     * 新注册用户数
     */
    @TableField(value = "num_registered")
    private Integer numRegistered = 0;
    /**
     * 活跃用户数
     */
    @TableField(value = "num_active")
    private Integer numActive = 0;
    /**
     * 登陆次数
     */
    @TableField(value = "num_login")
    private Integer numLogin = 0;
    /**
     * 次日留存用户数
     */
    @TableField(value = "num_retention1d")
    private Integer numRetention1d = 0;
    @TableField(fill = FieldFill.INSERT)
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;


}